﻿using System;
using System.Windows.Forms;

namespace SaleProgram
{
    public partial class LoginForm : Form
    {
        public string ResultLoginName { get; set; }

        public LoginForm()
        {
            InitializeComponent();
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (tbUserName.Text == "")
            {
                MessageBox.Show("不对，你怎么也得填一下尊姓大名呀！", "请填写登录名", MessageBoxButtons.OK, MessageBoxIcon.Error);
                tbUserName.Focus();
                this.DialogResult = DialogResult.No;
            }
            ResultLoginName = tbUserName.Text;
        }
    }
}
